package com.jw.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: jiangwang
 * @created: 2024/3/4 14:04
 */
public class DateUtils {

    public static  String parseFormatDate(Date date, String format) {
        if (date != null) {
            try {
                return new SimpleDateFormat(format).format(date);
            } catch (Exception e) {
                return null;
            }
        }
        return null;
    }

}
